package com.yuji.aacar.service;


import com.yuji.aacar.bean.request.ManagePersonalCarRequest;
import com.yuji.aacar.bean.request.SubmitRequest;
import com.yuji.aacar.core.cores.services.CoreServiceParameter;

import java.util.HashMap;


/**
 * <li>Package:com.ttp.boss.service
 * <li>Author: lining
 * <li>Date: 2017/4/12
 * <li>Description:
 */

public class BaseServiceParams extends CoreServiceParameter {


    /**
     * 版本更新
     */
    //    public static HashMap<String, Object> version() throws Exception{
    //        HashMap<String, Object> pars = new HashMap<>();
    //        pars.put("version", AppInfo.getUuUserId());
    //        pars.put("type",AppInfo.getDeviceType());
    //        pars.put("uuUserId",AppInfo.getVersion());
    //        return pars;
    //    }

    /**
     * 登录参数
     *
     * @param userName
     * @param passWord
     * @return
     */
    public static HashMap<String, Object> login(String userName, String passWord) {
        HashMap<String, Object> pars = new HashMap<>();
        pars.put("phoneNo", userName);
        pars.put("passWord", passWord);
        return pars;
    }

    public static HashMap<String, Object> register(String phoneNo, String passWord, String newPassWord, String code) {
        HashMap<String, Object> pars = new HashMap<>();
        pars.put("phoneNo", phoneNo);
        pars.put("passWord", passWord);
        pars.put("newPassWord", newPassWord);
        pars.put("code", code);
        return pars;
    }

    public static HashMap<String, Object> updatePersonalInfo(String passWord, String confirmPassWord, String newPassword) {
        HashMap<String, Object> pars = new HashMap<>();
        pars.put("passWord", passWord);
        pars.put("confirmPassWord", confirmPassWord);
        pars.put("newPassword", newPassword);
        return pars;
    }

    public static HashMap<String, Object> update_member(String nickName, String loginName, String sex) {
        HashMap<String, Object> pars = new HashMap<>();
        pars.put("nickName", nickName);
        pars.put("loginName", loginName);
        pars.put("sex", sex);
        return pars;
    }

    public static HashMap<String, Object> update_devicetokens(String deviceTokens) {
        HashMap<String, Object> pars = new HashMap<>();
        pars.put("deviceTokens", deviceTokens);
        return pars;
    }

    public static HashMap<String, Object> loginOut() {
        HashMap<String, Object> pars = new HashMap<>();
        return pars;
    }

    public static HashMap<String, Object> resetpassword(String phoneNo, String passWord, String newPassWord, String code) {
        HashMap<String, Object> pars = new HashMap<>();
        pars.put("phoneNo", phoneNo);
        pars.put("passWord", passWord);
        pars.put("newPassWord", newPassWord);
        pars.put("code", code);
        return pars;
    }

    public static HashMap<String, Object> imgupload(String flag, String base64Code) {
        HashMap<String, Object> pars = new HashMap<>();
        pars.put("flag", flag);
        pars.put("base64Code", base64Code);
        return pars;
    }


    public static HashMap<String, Object> sendShortMessage(String phoneNo, String flag) {
        HashMap<String, Object> pars = new HashMap<>();
        pars.put("phoneNo", phoneNo);
        pars.put("flag", flag);
        return pars;
    }

    public static HashMap<String, Object> validatorshortmessage(String phoneNo, String code, String flag) {
        HashMap<String, Object> pars = new HashMap<>();
        pars.put("phoneNo", phoneNo);
        pars.put("code", code);
        pars.put("flag", flag);
        return pars;
    }

    public static HashMap<String, Object> retrieveImageCode(String phoneNo, String type) {
        HashMap<String, Object> pars = new HashMap<>();
        pars.put("phoneNo", phoneNo);
        pars.put("type", type);
        return pars;
    }

    public static HashMap<String, Object> retrieveToken() {
        HashMap<String, Object> pars = new HashMap<>();
        return pars;
    }

    public static HashMap<String, Object> compareAppVersion() {
        HashMap<String, Object> pars = new HashMap<>();
        return pars;
    }

    public static HashMap<String, Object> getAllBrand(String pageNo, String pageSize) {
        HashMap<String, Object> pars = new HashMap<>();
        pars.put("pageNo", pageNo);
        pars.put("pageSize", pageSize);
        return pars;
    }

    public static HashMap<String, Object> getHotBrand() {
        HashMap<String, Object> pars = new HashMap<>();
        return pars;
    }

    public static HashMap<String, Object> getDataVersion(String tableName) {
        HashMap<String, Object> pars = new HashMap<>();
        pars.put("tableName", tableName);
        return pars;
    }

    public static HashMap<String, Object> getSeriesList(String brandId) {
        HashMap<String, Object> pars = new HashMap<>();
        pars.put("brandId", brandId);
        return pars;
    }

    public static HashMap<String, Object> getSeriesByName(String brandName) {
        HashMap<String, Object> pars = new HashMap<>();
        pars.put("brandName", brandName);
        return pars;
    }

    public static HashMap<String, Object> getRoomName() {
        HashMap<String, Object> pars = new HashMap<>();
        return pars;
    }

    public static HashMap<String, Object> getHomePageBanner() {
        HashMap<String, Object> pars = new HashMap<>();
        return pars;
    }

    public static HashMap<String, Object> validatorCoupon(String couponNo, String couponPassword) {
        HashMap<String, Object> pars = new HashMap<>();
        pars.put("couponNo", couponNo);
        pars.put("couponPassword", couponPassword);
        return pars;
    }

    public static HashMap<String, Object> getWashIndex(String cityName) {
        HashMap<String, Object> pars = new HashMap<>();
        pars.put("cityName", cityName);
        return pars;
    }


    public static HashMap<String, Object> managerCarAddress(String addrType, String areaCode, String areaName, String cityCode, String cityName,
                                                            String contactName, String contactNo, String detailAddress, String isDefault,
                                                            String operateFlag, String phoneNo, String provinceCode, String provinceName, String roomName, String roomCode, String pid) {
        HashMap<String, Object> pars = new HashMap<>();
        pars.put("addrType", addrType);
        pars.put("areaCode", areaCode);
        pars.put("areaName", areaName);
        pars.put("cityCode", cityCode);
        pars.put("cityName", cityName);
        pars.put("contactName", contactName);
        pars.put("contactNo", contactNo);
        pars.put("detailAddress", detailAddress);
        pars.put("isDefault", isDefault);
        pars.put("operateFlag", operateFlag);
        pars.put("phoneNo", phoneNo);
        pars.put("provinceCode", provinceCode);
        pars.put("provinceName", provinceName);
        pars.put("roomName", roomName);
        pars.put("roomCode", roomCode);
        pars.put("pid", pid);
        return pars;
    }

    public static HashMap<String, Object> queryCarAddress(String pageSize, String pageNo) {
        HashMap<String, Object> pars = new HashMap<>();
        pars.put("pageSize", pageSize);
        pars.put("pageNo", pageNo);
        return pars;
    }

    public static HashMap<String, Object> getPersonalCarList() {
        HashMap<String, Object> pars = new HashMap<>();
        return pars;
    }

    public static HashMap<String, Object> managePersonalCar(ManagePersonalCarRequest request) {
        HashMap<String, Object> pars = new HashMap<>();
        pars.put("request", request);
        return pars;
    }



    public static HashMap<String, Object> getMyCredit() {
        HashMap<String, Object> pars = new HashMap<>();
        return pars;
    }

    public static HashMap<String, Object> managePersonalCar(String carNo, String operatorFlag, String phoneNo) {
        HashMap<String, Object> pars = new HashMap<>();
        pars.put("carNo", carNo);
        pars.put("operatorFlag", operatorFlag);
        pars.put("phoneNo", phoneNo);
        return pars;
    }


    public static HashMap<String, Object> select(String carType, String carLibType, String provinceCode,
                                                 String cityCode, String areaCode,String roomCode,String bookStartTime, String bookEndTime) {
        HashMap<String, Object> pars = new HashMap<>();
        pars.put("carType", carType);
        pars.put("carLibType", carLibType);
        pars.put("provinceCode", provinceCode);
        pars.put("cityCode", cityCode);
        pars.put("areaCode", areaCode);
        pars.put("roomCode", roomCode);
        pars.put("bookStartTime", bookStartTime);
        pars.put("bookEndTime", bookEndTime);
        return pars;
    }

    public static HashMap<String, Object> submit(SubmitRequest order) {
        HashMap<String, Object> pars = new HashMap<>();
        pars.put("order", order);
        return pars;
    }

    public static HashMap<String, Object> list(String pageNumber, String pageSize) {
        HashMap<String, Object> pars = new HashMap<>();
        pars.put("pageNumber", pageNumber);
        pars.put("pageSize", pageSize);
        return pars;
    }

    public static HashMap<String, Object> detail(String orderNo) {
        HashMap<String, Object> pars = new HashMap<>();
        pars.put("orderNo", orderNo);
        return pars;
    }
    public static HashMap<String, Object> gen_alipay_paystr(String orderNo) {
        HashMap<String, Object> pars = new HashMap<>();
        pars.put("orderNo", orderNo);
        return pars;
    }

    public static HashMap<String, Object> mock(String out_trade_no) {
        HashMap<String, Object> pars = new HashMap<>();
        pars.put("out_trade_no", out_trade_no);
        return pars;
    }

    public static HashMap<String, Object> gen_weixin_paystr_order(String orderNo) {
        HashMap<String, Object> pars = new HashMap<>();
        pars.put("orderNo", orderNo);
        return pars;
    }

    public static HashMap<String, Object> cancel(String orderNo) {
        HashMap<String, Object> pars = new HashMap<>();
        pars.put("orderNo", orderNo);
        return pars;
    }

    public static HashMap<String, Object> gen_alipay_paystr_order_uip(String integral,String rechargeType) {
        HashMap<String, Object> pars = new HashMap<>();
        pars.put("integral", integral);
        pars.put("rechargeType", rechargeType);
        return pars;
    }

    public static HashMap<String, Object> gen_weixin_paystr_order_uip(String integral,String rechargeType) {
        HashMap<String, Object> pars = new HashMap<>();
        pars.put("integral", integral);
        pars.put("rechargeType", rechargeType);
        return pars;
    }
}
